<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>个人信息</title>
	<meta name="renderer" content="webkit">	
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">	
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">	
	<meta name="apple-mobile-web-app-status-bar-style" content="black">	
	<meta name="apple-mobile-web-app-capable" content="yes">	
	<meta name="format-detection" content="telephone=no">	
	<link rel="stylesheet" type="text/css" href="__ADMIN__/layui/css/layui.css" media="all">
	<link rel="stylesheet" type="text/css" href="__ADMIN__/bootstrap/css/bootstrap.css" media="all">
	<link rel="stylesheet" type="text/css" href="__ADMIN__/global.css" media="all">
	<link rel="stylesheet" type="text/css" href="__ADMIN__/css/personal.css" media="all">
</head>
<body>
<blockquote class="layui-elem-quote mylog-info-tit">
    <ul class="layui-tab-title">
        <a href="/admin/admin/add"><li class="layui-btn"><i class="layui-icon">&#xe60a;</i>添加用户</li></a>
    </ul>
</blockquote>
<div class="layui-form">
  <table class="layui-table">
    <colgroup>
      <col width="100">
      <col width="100">
      <col width="180">
      <col width="180">
      <col width="180">
      <col width="100">
      <col width="110">
      <col>
    </colgroup>
    <thead>
      <tr>
        <th>用户名</th>
        <th>昵称</th>
        <th>邮箱</th>
        <th>注册时间</th>
        <th>最后登陆时间</th>
        <th>是否激活</th>
        <th>角色组</th>
        <th>操作</th>
      </tr> 
    </thead>
    <tbody>
      <volist name="list" id="user">
      <tr>
        <td>{$user['username']}</td>
        <td>{$user['name']}</td>
        <td>{$user['email']}</td>
        <td>{$user['reg_date']|date="Y-m-d H:i:s",###}</td>
        <th>
          <if condition="($user['last_logdate'] eq null)"> 未登录
          <else />{$user['last_logdate']|date="Y-m-d H:i:s",###}
          </if>
        </th>
        <th>{$user['active']==1?'已激活':'未激活'}</th>
        <td>{$user['title']}</td>
        <th>
          <a href="/admin/auth/access_edit/id/{$user['id']}" class="layui-btn layui-btn-small layui-btn-normal">分配权限</a>
          <a href="/admin/admin/edit/id/{$user['id']}" class="layui-btn layui-btn-small">编辑</a>
          <a href="/admin/admin/delete/id/{$user['id']}" class="layui-btn layui-btn-small layui-btn-danger">删除</a>
        </th>
      </tr>
      </volist>
    </tbody>
  </table>
</div>
<script type="text/javascript" src="__ADMIN__/layui/layui.js"></script>
</body>
</html>